package com.ruoyi.common.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * Tree基类
 * 
 * @author ruoyi
 */
@Data
public class TreeEntity extends BizBaseEntity {
    private static final long serialVersionUID = 1L;


    /** 父ID */
    private Long parentId;

    /** 显示顺序 */
    private Integer orderNum;

    /** 祖级列表 */
    private String ancestors;

    /** 子集 */
    @TableField(exist = false)
    private List<?> children = new ArrayList<>();

}
